import type { RouteRecordRaw } from 'vue-router';

import { VBEN_LOGO_URL } from '@vben/constants';

import { BasicLayout } from '#/layouts';

const routes: RouteRecordRaw[] = [
  {
    component: BasicLayout,
    meta: {
      icon: VBEN_LOGO_URL,
      order: 7,
      title: '资质证照管理',
    },
    name: 'Qualification',
    path: '/qualification',
    children: [
      {
        name: 'QualificationMaterial',
        path: '/qualification/material',
        component: () => import('#/views/qualification/material/index.vue'),
        meta: {
          icon: 'lucide:copyright',
          title: '注册证管理',
        },
      },
      {
        name: 'QualificationFactory',
        path: '/qualification/factory',
        component: () => import('#/views/qualification/factory/index.vue'),
        meta: {
          icon: 'lucide:copyright',
          title: '供应商资质',
        },
      },
    ],
  },
];

export default routes;
